package Oop;

public class Pet {
    String name;
    int age;

    public void shout(){
        System.out.println("叫");
    }
    public static void main(String[] args) {
        Pet dog = new Pet();
        dog.name="旺财";
        dog.age=20;
        dog.shout();
        System.out.println(dog.name);
        System.out.println(dog.age);
        Pet cat = new Pet();
    }
}
